package cn.tedu.ymg.admin.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
@Data
public class AdminAddNewParam implements Serializable {


    @NotEmpty(message = "添加管理员失败，请填写用户名！")
    private String username;

    @NotEmpty(message = "添加管理员失败，请填写密码！")
    private String password;
    private String nickname;
    private String avatar;
    private String phone;
    private String email;
    private String description;
    private Integer enable;
    private Long[] roleIds;
}
